package org.vergil.core.designpattern.strategy;

/**
 * Created by vergil on 17-3-25.
 */

//学生票折扣类：具体策略类
public class StudentDiscount extends AbstractDiscount {
    @Override
    public double calculate(double price) {
            System.out.println("学生票：");
            return price * 0.8;
    }
}
